//
//  TTCommentModelCell.m
//  Charles
//
//  Created by lanou3g on 16/5/17.
//  Copyright © 2016年 liu. All rights reserved.
//

#import "TTCommentModelCell.h"
#import "UIImageView+WebCache.h"
@interface TTCommentModelCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImgView;
@property (weak, nonatomic) IBOutlet UILabel *vLabel;
@property (weak, nonatomic) IBOutlet UILabel *nLabel;
@property (weak, nonatomic) IBOutlet UILabel *fLabel;
@property (weak, nonatomic) IBOutlet UILabel *bLabel;

@end

@implementation TTCommentModelCell

- (void)awakeFromNib {
    // Initialization code
}


- (void)layoutSubviews {
    
    self.iconImgView.layer.cornerRadius = 25;
    self.iconImgView.layer.masksToBounds = YES;
    
    if (self.model.timg) {
        [self.iconImgView sd_setImageWithURL:[NSURL URLWithString:self.model.timg]];
    } else {
        
        self.iconImgView.image = [UIImage imageNamed:@"t2.gif"];
        
    }
    
    self.nLabel.text = self.model.n;
    self.vLabel.text = self.model.v;
    self.fLabel.text = self.model.f;
    self.bLabel.text = self.model.b;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
